<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>hello vue</title>
</head>
<body>
    <div id="app">
        <!-- 这个用得比价少 -->
        <h2 :style="[finalSize, finalColor]">{{message}}</h2>
    </div>
    <script src="../js/vue.js"></script>
    <script>
        
        const app = new Vue({
            el: '#app',    
            data: {    
                message: '你好啊',
                finalSize: {backgroundColor: 'red'},
                finalColor: {fontSize: '100px'}
            }
        })
    </script>
</body>
</html>